using System;
using UnityEngine;

[Serializable]
public class LookAtCamera : CameraBehaviour
{
	public Vector3 lookPosition;

	public Vector3 cameraPosition;

	protected Quaternion desiredRotation;

	protected override Quaternion DesiredRotation()
	{
		return Quaternion.LookRotation(lookPosition - cameraPosition);
	}

	protected override Vector3 DesiredPosition()
	{
		return cameraPosition;
	}
}
